package edu.maplef.bookwild.dao;

import com.google.gdata.data.douban.SubjectEntry;

import edu.maplef.bookwild.schema.Book;

public interface IBookDao extends IBaseDao<Book> {

	/**
	 * 根据Entry对象（来自豆瓣）创建图书信息
	 * @param entity 
	 */
	public Book entry2Book(SubjectEntry entity);

	/**
	 * 根据豆瓣的数字ID查询本地图书
	 * @param id 图书对应的豆瓣ID
	 * @return 查询到的图书
	 * @throws Exception
	 */
	public Book getLocalBookByNumId(long id) throws Exception;

}
